package com.xiongwei.manageback.exception;

import lombok.Getter;

@Getter
public class ServiceException extends RuntimeException{

    public static final int AUTH_NOT = 401;//权限不足
    public static final int USER_NOT_FUND = 501;//用户不存在
    public static final int PASS_WORD_ERROR = 502;//密码错误
    public static final int CAPTCHA_ERROR = 503;//验证码错误
    public static final int USER_ALREADY_EXISTS = 504;//用户已存在
    public static final int UN_KNOW_ERROR = 505;//未知错误


    private int code;

    public ServiceException(int code,String msg){
        super(msg);
        this.code = code;
    }
}
